<?php
/**
 * $Id: base.php 12 2010-11-28 20:02:53Z LEON $
 * $Author: LEON $
 * $LastChangedDate: 2010-11-28 20:02:53 +0000 (Sun, 28 Nov 2010) $
 * $Revision: 12 $
 */
namespace cmFly\system\router;
abstract class base {
    protected $args;
    protected $lang;
    protected $document_root;
    protected $document_root_uri;
    protected $req_file_name;
    protected $req_dir;
    final public function __construct($document_root) {
	$this->document_root=$document_root;
	$this->init();
    }
    protected function set_req_dir($rd) {
	$this->req_dir=$rd;
    }
    public function get_req_dir() {
	return $this->req_dir;
    }
    public function get_req_file_name() {
	return $this->req_file_name;
    }
    protected function set_req_file_name($fn) {
	$this->req_file_name=$fn;
    }
    public function get_document_root() {
	return $this->document_root;
    }
    public function get_document_root_uri() {
	return $this->document_root_uri;
    }
    protected function set_document_root_uri($uri) {
	$this->document_root_uri=$uri;
    }
    public function get_args() {
	return $this->args;
    }
    protected function set_args($args) {
	$this->args=$args;
    }
    protected function set_lang($lang) {
	$this->lang=$lang;
	return true;
    }
    public function get_lang() {
	return $this->lang;
    }
    protected function parse_internal_path($cmd) {
	return \cmFly::parse_internal_path($cmd);
    }
    abstract protected function init();
}
?>